import { INode } from "./index";

// 检测扩容
declare type checkExpand = (node: INode) => Array<{ expand: boolean, carsh: Array<INode>, isCarsh: boolean }>;

interface IMessageOptions {
    content: string;
    type: 'success' | 'error' | 'warning' | 'info';
    lastTime?: number;
    seed?: number;
    isDestory?: boolean;
    isShow?: boolean;
    isEnter?: boolean;
    isLeave?:boolean;
}

declare type IMessage = (options: IMessageOptions | string) => void;

export {
    checkExpand,
    IMessageOptions,
    IMessage
}
